# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-scp
_pkgname=scp.py
pkgver=0.13.2
pkgrel=3
pkgdesc="scp module for paramiko"
url="https://github.com/jbardin/scp.py"
arch="noarch"
license="LGPL-2.1-or-later"
depends="py3-paramiko py3-six py3-cffi py3-idna py3-asn1crypto py3-cparser"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/jbardin/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-scp" # Backwards compatibility
provides="py-scp=$pkgver-r$pkgrel" # Backwards compatibility

check() {
	python3 setup.py check
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="56a83958204c7b38d68c8ca896fbe8de1e2198acc0d0c76524e77218bccbf90c67f460f4bd4c745cde7112147fa1860f63777eaef52134519e226e69cd883cb9  py3-scp-0.13.2.tar.gz"
